import React from 'react'

const ParComp = (props) => {
  console.log(props, 'pros')
  console.log(props.children)
  console.log(React.Children.map(props.children, c => [c, [c, [c, c]]]))
  return props.children
}

const Container = () => {
  return <ParComp >
    <span>1</span>
    <span>2</span>
  </ParComp>
}

export default Container